package case1;

import java.util.ArrayList;
import java.util.List;

public class Test1 {
    public static void main(String[] args) {
        List<Student> list=new ArrayList<>();
          list.add(new Student("小王",23));
          list.add(new Student("小黑",22));
          list.add(new Student("小白",25));
        for (Student student : list) {
            System.out.println(student);
        }
    }
}
